import { defineStore } from 'pinia'

const useInfoStore = defineStore('info', {
  state: () => {
    return { active: 1 }
  },
  actions: {
    toLastPage() {
      this.active > 1 && this.active--
    },
    toNextPage() {
      this.active < 4 && this.active++
    }
  },
})

export default useInfoStore